
public class Pet {

	/**
	 * @param args
	 */
	protected String name;
	protected int age;
	protected boolean hapy;
	
	public Pet() {
		name="Lassy";
		age=200000;
		hapy=false;
	}
	
	public Pet(int a) {}
	
	public void setString(String nam, String bred) {
		name=nam;
	}
	protected void setName(String nam){
		name=nam;
	}
	protected void setInt(int ag) throws NNE{
		age=ag;
		if (age<0){
			throw new NNE("Negative ages aren't allowed");
		}
	}
	protected void setBoo(boolean hap){
		hapy=hap;
	}
	public void procAll(){
		System.out.println("You have a pet named "+name+" who is "+age+" years old, and it is "+hapy+" that he is happy");
	}

}
